package com.nifostasky.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 定时任务(ScheduleJob)表实体类
 *
 * @author makejava
 * @since 2022-03-08 17:21:05
 */
@Data
@TableName(value = "schedule_job")
public class ScheduleJob implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 任务调度参数key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";

    /**
    * 主键自增:
    * 任务id
    */
    @TableId(value = "job_id", type = IdType.AUTO)
    private Long jobId;


    /**
    *spring bean名称
    */
    @TableField(value = "bean_name")
    private String beanName;

    /**
    *参数
    */
    @TableField(value = "params")
    private String params;

    /**
    *cron表达式
    */
    @TableField(value = "cron_expression")
    private String cronExpression;

    /**
    *任务状态  0：正常  1：暂停
    */
    @TableField(value = "status")
    private Integer status;

    /**
    *备注
    */
    @TableField(value = "remark")
    private String remark;

    /**
    *创建时间
    */
    @TableField(value = "create_time")
    private Date createTime;

}
